#ifndef H_TEXTURE_UPDATER_H
#define H_TEXTURE_UPDATER_H

#include <QThread>
#include <QImage>
#include <QMutex>
class CTextureUpdater :public QThread
{
	Q_OBJECT
public:
	CTextureUpdater();
	~CTextureUpdater();

	void UpdateTexture(QImage& img);

signals:
	void SigSendQImage(QImage img);
protected:
	void run();
private:
	QMutex m_mutex;
	QImage m_image;
	bool m_hasData = false;
};

#endif